<template>
  <div>
    <van-cell class="houses-item" @click='$router.push(`/detail/${item.id}`)'>
      <template #title>
        <div class="head">
          <img
            :src="'http://liufusong.top:8080'+item.houseImg"
            alt=""
          />
          <div class="con">
            <div class='title'> {{item.title}}</div>
          
            <p class="other">{{item.desc}} </p>
             <van-tag type="primary" v-for='list in item.tags' :key='list'>{{list}}</van-tag>
            <van-tag type="danger" v-for='items in item.tags' :key='items.index'>{{item.tags[items.index]}}</van-tag>

            <p class='price'>{{item.price}}元/月</p>
          </div>
        </div>
      </template>
      <!-- <template #label>
        <div class="body van-multi-ellipsis--l2" v-html="item.content">
        
        </div>
        <div class="foot">点赞 {{item.likeCount}} | 浏览 {{item.views}}</div>
      </template> -->
    </van-cell>
  </div>
</template>
 
<script>
export default {
  name: "",
  components: {},
  props: {
    item: {
      type: Object,
      required: true,
      default: () => ({}),
    }
  },
  data() {
    return {
    };
  },
  computed: {},
  watch: {},
  created() {
  },
  methods: {}
};
</script>

<style scoped lang='less'>
 .houses-item {
  .head {
    display: flex;
    img {
      width: 100px;
      height: 100px;
      overflow: hidden;
      margin-right: 5px;
    }
    .con {
      text-align: left;
      // background-color: pink;
      
       
        margin-right: 50px;
      .title{
        font-weight:700;
        font-size: 15px;
        margin:5px 0;
        overflow: hidden;
        white-space:nowrap;
        text-overflow:ellipsis;
       
      }
      p {
        margin: 0;
        &.other {
          font-size: 10px;
          color: #999;
        }
      }
    }
  }
 
}    
</style>